<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Pearl wiki - <TMPL_VAR NAME=PAGE_TITLE></title>
    <link rel="stylesheet" href="<TMPL_VAR NAME=TEMPLATE_DIR>css/style.css" type="text/css" />
	<script type="text/javascript" src="/3rdparty/js/jquery-1.3.min.js"></script>
</head>
<body>
    <table border="0" width="100%" cellpadding="4" id="mainTable" cellspacing="0">
        <tr>
            <th colspan="3">
                <p  style="float: right; margin: 2px; color: #333C4D">Wiki powered by OniX ;)</p>
                <h1>
                    <a href="pearlwiki.pl"><TMPL_VAR NAME=PAGE_TITLE></a></h1>
                <p >
                    Last changed: <TMPL_VAR NAME=MODIFICATION_TIME></p>                   
            </th>            
        </tr>
        <tr id="headerLinks">
            <td class="pageLinks" colspan="2">
                Wiki
            </td>
            <td class="pageLinks" align="right">
                <a href="pearlWiki.pl?page=<TMPL_VAR NAME=URL_PAGE_TITLE>&amp;action=edit">Edit</a> /
                <a href="pearlWiki.pl?page=syntax">Syntax</a>
            </td>            
        </tr>	
<TMPL_VAR NAME=COMMENT_BEGIN>		
        <tr>
            <td id="mainContent" colspan="3">		
				<form id="wikiContent" method="POST" action="pearlWiki.pl?page=<TMPL_VAR NAME=URL_PAGE_TITLE>">
					Please edit page name:					
					<input id="pageName" type="text" name="newPageName" value="<TMPL_VAR NAME=PAGE_TITLE>" maxlength="40" size="50" onchange="$('#pageName').attr('value',this.value)" />
					(change it to create new page)
					<div class="fixAreaWidth">
						<textarea id="wikiContent" name="wikiContent" cols="80" rows="30"><TMPL_VAR NAME=WIKI_CONTENT></textarea>						
						<p style="float:right;margin:6px;margin-right:30px">						
							<input type="hidden" name="modification" value="not_implemented_yet" /> 							
							<input type="hidden" name="action" value="save" id="action"/>
							<input type="hidden" name="oldPageName" value="<TMPL_VAR NAME=PAGE_TITLE>" />							
							<input id="preview" class="submit" type="submit" name="preview" value="Preview" onclick="$('#action').attr('value', 'preview')"/>
							<input id="apply" class="submit" type="submit" value="Save changes" />
						</p>
					</div>
				</form>
			</td>
		</tr>
<TMPL_VAR NAME=COMMENT_END>				
		<tr>
            <td id="mainContent" colspan="3">				
				<TMPL_VAR NAME=HTML_CONTENT>
            </td>
        </tr>
		
        <tr id="footerLinks">
            <td class="pageLinks">                    
                     Powered by <a href="http://code.google.com/p/pearlwiki/">PearlWiki</a>.
                <br />
                <TMPL_VAR NAME=CURRENT_TIME> -- <TMPL_VAR NAME=REMOTE_ADDR>
            </td>
            <td class="pageLinks">                
            </td>
            <td class="pageLinks" align="right">
                <a href="pearlWiki.pl?page=<TMPL_VAR NAME=URL_PAGE_TITLE>&amp;action=edit">Edit</a> /
                <a href="pearlWiki.pl?page=syntax">Syntax</a>
            </td>
        </tr>
    </table>
</body>
</html>
